<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>统计后台管理</title>
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/css/managercss.css">
<style type="text/css">
<!--
body{ background:#ffffff;
	padding:2px;padding-top:5px;
}
-->
</style>
<script type="text/javascript" src="<%=request.getContextPath() %>/js/jquery-1.4.min.js"></script>
</head>
<body>
<div class="menuList">
	<div class="menu"  id="Mmenu001">
		<div class="title" onClick="chklist('Mmenu001')">常用快捷功能</div>
		<div class="list">欢迎您使用统计后台系统。
		</div>
		<div class="end"></div>
	</div>	
	
	<c:if test="${sessionScope.adminUser.power==0}">
	<div class="menu1" id="menu04">
		<div class="title" onClick="chklist('menu04')">功能列表</div>
		<div class="list" style="margin-left:20px;">
		  <ul>
		  	<li><a href="<%=request.getContextPath() %>/admin/sp/cpStatList" target="iFrame1">短信统计查询</a></li>
		  	<li><a href="<%=request.getContextPath() %>/admin/sp/cpOfSpList" target="iFrame1">短信通道列表</a></li>
		  	<li><a href="<%=request.getContextPath() %>/admin/game/cpGameList" target="iFrame1">视频统计查询</a></li>
		  	<li><a href="<%=request.getContextPath() %>/admin/game/cpVideoList" target="iFrame1">游戏统计查询</a></li>
		  	<!-- 
		  	<li><a href="<%=request.getContextPath() %>/admin/sp/cpStatList" target="iFrame1">视频统计查询</a></li>
		  	<li><a href="<%=request.getContextPath() %>/admin/sp/cpOfSpList" target="iFrame1">视频代码列表</a></li> -->
		  </ul>
		</div>		
	</div>
	</c:if>
	<c:if test="${sessionScope.adminUser.power==1}">
	<div class="menu1" id="menu03">
		<div class="title" onClick="chklist('menu03')">统计查询</div>
		<div class="list" style="margin-left:20px;">
		  <ul>
		  	<li><a href="<%=request.getContextPath() %>/admin/sp/statList" target="iFrame1">短信按天统计查询</a></li>
		  	<li><a href="<%=request.getContextPath() %>/admin/sp/hourStatList" target="iFrame1">短信小时统计查询</a></li>
		  	<li><a href="<%=request.getContextPath() %>/admin/ivr/ivrStatList" target="iFrame1">IVR按天统计查询</a></li>
		  	<li><a href="<%=request.getContextPath() %>/admin/ivr/ivrHourStatList" target="iFrame1">IVR小时统计查询</a></li>
		  	<li><a href="<%=request.getContextPath() %>/admin/game/gameList" target="iFrame1">视频数据查询</a></li>
		  	<li><a href="<%=request.getContextPath() %>/admin/game/videoList" target="iFrame1">游戏数据查询</a></li>
		  </ul>
		</div>		
	</div>
	
	<div class="menu1" id="menu04">
		<div class="title" onClick="chklist('menu04')">数据查询</div>
		<div class="list" style="margin-left:20px;">
		  <ul>
		  	<li><a href="<%=request.getContextPath() %>/manage/search/recvSend.jsp" target="iFrame1">短信上下行查询</a></li>	
		  	<li><a href="<%=request.getContextPath() %>/manage/search/ivr.jsp" target="iFrame1">IVR拨打记录查询</a></li>		  	
		  </ul>
		</div>		
	</div>
	
	
	<div class="menu1" id="menu01">
		<div class="title" onClick="chklist('menu01')">后台管理</div>
		<div class="list" style="margin-left:20px;">
		  <ul>
		  	<li><a href="<%=request.getContextPath() %>/admin/company" target="iFrame1">SP-公司资料</a></li>
		  	<li><a href="<%=request.getContextPath() %>/admin/sp/list" target="iFrame1">SP-通道管理</a></li>
		  	<li><a href="<%=request.getContextPath() %>/admin/sp/spProvinceList" target="iFrame1">SP-通道分布情况</a></li>
		  	<li><a href="<%=request.getContextPath() %>/admin/adminUser" target="iFrame1">CP-公司资料</a></li>
		  	<li><a href="<%=request.getContextPath() %>/admin/sp/spcplist" target="iFrame1">CP-通道分配情况</a></li>
		  	<li><a href="<%=request.getContextPath() %>/manage/dateImport.jsp" target="iFrame1">视频数据导入</a></li>
		  	<li><a href="<%=request.getContextPath() %>/manage/gameDateImport.jsp" target="iFrame1">游戏数据导入</a></li>
		  </ul>
		</div>		
	</div>
	</c:if>
	<div class="menu1" id="menu02">
		<div class="title" onClick="chklist('menu02')">系统管理</div>
		<div class="list" style="margin-left:20px;">
			<ul>
				<c:if test="${sessionScope.adminUser.power==1}">
				<li><a href="<%=request.getContextPath() %>/admin/adminUser/adminList" target="iFrame1">用户管理</a></li>
				</c:if>
				<li><a href="<%=request.getContextPath() %>/admin/adminUser/logout" target="_parent">退出系统</a></li>
			</ul>
		</div>
	</div>
</div>
</body>
</html>
<script type="text/javascript">

	$(function(){
		//$(".list").hide();
		//$(".list").first().show();
	});

	function chklist(menuId){
		var obj = $("#"+menuId);
		if (obj==null) {alert("没有找到对像");return false;}
		var target = obj.children(".list");
		if(target.is(":hidden")){
			target.show("slow");
		}else{
			target.hide("slow");
		}
	}
</script>